import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// 引入preview
// import vuePicturePreview from "vue-picture-preview";
// Vue.use(vuePicturePreview);
// 全局引入swiper
import VAS from "vue-awesome-swiper";
Vue.use(VAS);
import "swiper/css/swiper.css";

// 引入ElementUI组件库,引入后即可在组件中使用ElementUI
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);

// 引入mintui
import MintUI from "mint-ui";
import "mint-ui/lib/style.css";
// vue.use()方法将会自动调用MintUI底层代码的install方法
Vue.use(MintUI);
// 引入axios
import axios from "axios";
import VueAxios from "vue-axios";
axios.defaults.baseURL = "http://localhost:3000/pro/";
Vue.use(VueAxios, axios);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount("#app");
